package com.cql.common.constant;

/**
 * @author cql
 */
public class FoodCircleConstant {


    /**
     * 基础角色之食客
     */
    public static final Long BASE_ROLE_DINER = 1L;


    /**
     * 基础角色之厨师
     */
    public static final Long BASE_ROLE_CHEF = 2L;


    /**
     * 基础角色之商家
     */
    public static final Long BASE_ROLE_STORE = 3L;


    /**
     * 等级设置：一共分为5个等级
     * Lv1: 1000exp
     * Lv2: 1000exp ~ 2000exp
     * Lv3: 2000exp ~ 4000exp
     * Lv4: 4000exp ~ 6000exp
     * Lv4: 6000exp ~ 10000exp
     * <p>
     * 每个等级应该有不同的名字
     */
    public static final Long LV1 = 1000L;

    public static final Long LV2 = 2000L;

    public static final Long LV3 = 4000L;

    public static final Long LV4 = 6000L;

    public static final Long LV5 = 10000L;

    /**
     * 临时状态
     */
    public static final Integer TEMP_STATUS = 0;

    /**
     * 草稿状态
     */
    public static final Integer DRAFT_STATUS = 10;

    /**
     * 已发布状态
     */
    public static final Integer PUBLISH_STATUS = 20;

    /**
     * 正在审核
     */
    public static final Integer VERIFYING_STATUS = 30;


    /**
     * 审核不通过
     */
    public static final Integer VERIFY_FAIL_STATUS = 40;

    /**
     * 审核通过
     */
    public static final Integer VERIFY_SUCCESS_STATUS = 50;


    /**
     * 显示状态
     */
    public static final Integer SHOW_STATUS = 60;

    /**
     * 统一分割符号
     */
    public static final String SEPARATE_CHAR = ",";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";


    /**
     * data_scope
     */

    /**
     * 仅自己可见
     */
    public static final Integer ONLY_ME = 1;

    /**
     * 仅粉丝可见
     */
    public static final Integer ONLY_FAN = 2;

    /**
     * 所有人可见
     */
    public static final Integer ALL_FRIEND = 3;

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";


    /**
     * 通用成功标识
     */
    public static final Integer SUCCESS = 0;

    /**
     * 通用失败标识
     */
    public static final Integer FAIL = 1;

    /**
     * region_id = 0
     */
    public static final String ADDR_ZERO = "全国各地";

    /**
     * region == null
     */
    public static final String ADDR_NOT = "暂无地区";


    /**
     * 探店
     */
    public static final Integer TYPE_MOMENT = 1;

    /**
     * 探店缓存过期时间
     */
    public static final Integer MOMENT_CACHE_TIME = 24;

    /**
     * ip访问某文章记录缓存
     */
    public static final Integer IP_MOMENT = 12;

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 主料
     */
    public static final Integer MAIN_MATERIALS = 1;

    /**
     * 辅料
     */
    public static final Integer ASSIST_MATERIALS = 2;
    /**
     * 调料
     */
    public static final Integer OTHER_MATERIALS = 3;


}
